﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Weixin.BLL.ChinaTax;
using Weixin.Entity.ChinaTax;

namespace Weixin.Web
{
    public partial class Order : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["act"] == "save")
            {
                FeedbackBLL feedbackBLL = FeedbackBLL.GetInstance();
                FeedbackEntity feedbackEntity = new FeedbackEntity();
                feedbackEntity.Detail = Request.Form["txtDetail"];
                feedbackEntity.Name = Request.Form["txtName"];
                feedbackEntity.Mobile = Request.Form["txtMobile"];
                feedbackEntity.Email = Request.Form["txtEmail"];
                feedbackEntity.CreateTime = DateTime.Now;
                feedbackEntity.Address = Request.Form["txtAddress"];

                if (feedbackBLL.Insert(feedbackEntity) > 0)
                {
                    Response.Redirect("Success.aspx");
                }
            }
        }
    }
}